package com.currency.admin.api.feign;

import com.currency.admin.pojo.dto.OAuthClientFeignDTO;
import com.currency.admin.pojo.entity.SysOauthClient;
import com.currency.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Lan
 * @date 2021/12/14
 */
@FeignClient(value = "currency-admin", contextId = "oauth-client")
public interface OAuthClientFeignClient {

    @GetMapping("/api/v1/oauth-clients/{clientId}")
    Result<OAuthClientFeignDTO> getOAuthClientById(@PathVariable String clientId);
}

